package com.ly.video.api.user.entity;

import java.util.Date;
import java.util.Objects;

/**
 * 收入信息实体
 */
public class InComeEntity {

    private Integer id;
    private Integer uid;
    private Integer coin;
    private Date createTime;
    private String content;

    public InComeEntity(Integer id, Integer uid, Integer coin, Date createTime, String content) {
        this.id = id;
        this.uid = uid;
        this.coin = coin;
        this.createTime = createTime;
        this.content = content;
    }

    public InComeEntity() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getCoin() {
        return coin;
    }

    public void setCoin(Integer coin) {
        this.coin = coin;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof InComeEntity)) return false;
        InComeEntity that = (InComeEntity) o;
        return Objects.equals(getId(), that.getId()) && Objects.equals(getUid(), that.getUid()) && Objects.equals(getCoin(), that.getCoin()) && Objects.equals(getCreateTime(), that.getCreateTime()) && Objects.equals(getContent(), that.getContent());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getUid(), getCoin(), getCreateTime(), getContent());
    }

    @Override
    public String toString() {
        return "InComeEntity{" +
                "id=" + id +
                ", uid=" + uid +
                ", coin=" + coin +
                ", createTime=" + createTime +
                ", content='" + content + '\'' +
                '}';
    }
}
